package com.micro.ai.template.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 模板分类实体（调整后）
 * 对应表：template_categories
 *
 * @author micro-ai
 * @since 0.0.1
 * @version 2.0
 */
@Data
@TableName("template_categories")
@Schema(description = "模板分类实体")
public class TemplateCategory {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "主键ID")
    private String id;

    @TableField("category_id")
    @Schema(description = "分类ID", example = "customer_service")
    private String categoryId;

    @TableField("name")
    @Schema(description = "分类名称", example = "客服助手")
    private String name;

    @TableField("description")
    @Schema(description = "分类描述")
    private String description;

    @TableField("parent_category_id")
    @Schema(description = "父分类ID")
    private String parentCategoryId;

    @TableField("sort_order")
    @Schema(description = "排序值", example = "1")
    private Integer sortOrder;

    @TableField("icon")
    @Schema(description = "分类图标", example = "headset")
    private String icon;

    @TableField("level")
    @Schema(description = "分类层级", example = "1")
    private Integer level;

    @TableField("path")
    @Schema(description = "分类路径", example = "/customer_service")
    private String path;

    @TableField("enabled")
    @Schema(description = "是否启用", example = "true")
    private Boolean enabled;

    @TableField("created_at")
    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
}

